package com.atguigu.orderservice;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.context.annotation.ComponentScan;

@EnableDiscoveryClient/*nacos的注册发现*/
@EnableFeignClients/*这个服务需要远程调用其他模块*/
@SpringBootApplication
@ComponentScan("com.atguigu")   /*swagger进行测试*/
@MapperScan("com.atguigu.orderservice.mapper")    /*加上这个注解就不用在每个mapper上面加上@Mapper注解了*/
public class orderApplication {

    public static void main(String[] args) {
        SpringApplication.run(orderApplication.class, args);
    }

}